<template>
  <view>
    <swiper @change="swiperChange" class="accomplishFile" :style="{width:W,height:H}" indicator-dots="true" vertical='true' circular='true'>
      <swiper-item v-for="(image,index) in pdfImage" :key="image.sort">
        <image style="width: 100%;height: 100%;"
          :src="image.url">
        </image>
      </swiper-item>
    </swiper>
  </view>
</template>

<script>
  export default {
    name: "file",
    props: ['pdfImage','W','H'],
    data() {
      return {
        
      };
    },
    mounted() {

    },
    methods: {
      swiperChange(e) {
        let param={
          pagNo:e.detail.current,
          pages:this.pdfImage.length
        }
        this.$emit('swiperChange',param)
        },
    },

  }
</script>

<style>
  .accomplishFile {
    position: absolute;
    background-color: antiquewhite;
  }
</style>
